package com.push.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.push.web.mapper.BizBibExpertMapper;
import com.push.web.domain.BizBibExpert;
import com.push.web.service.IBizBibExpertService;

/**
 * 专家Service业务层处理
 *
 * @author yanxi
 * @date 2022-10-10
 */
@Service
public class BizBibExpertServiceImpl implements IBizBibExpertService
{
    @Autowired
    private BizBibExpertMapper bizBibExpertMapper;

    /**
     * 查询专家
     *
     * @param expId 专家主键
     * @return 专家
     */
    @Override
    public BizBibExpert selectBizBibExpertByExpId(String expId)
    {
        return bizBibExpertMapper.selectBizBibExpertByExpId(expId);
    }

    /**
     * 查询专家列表
     *
     * @param bizBibExpert 专家
     * @return 专家
     */
    @Override
    public List<BizBibExpert> selectBizBibExpertList(BizBibExpert bizBibExpert)
    {
        return bizBibExpertMapper.selectBizBibExpertList(bizBibExpert);
    }

    /**
     * 新增专家
     *
     * @param bizBibExpert 专家
     * @return 结果
     */
    @Override
    public int insertBizBibExpert(BizBibExpert bizBibExpert)
    {
        return bizBibExpertMapper.insertBizBibExpert(bizBibExpert);
    }

    /**
     * 修改专家
     *
     * @param bizBibExpert 专家
     * @return 结果
     */
    @Override
    public int updateBizBibExpert(BizBibExpert bizBibExpert)
    {
        return bizBibExpertMapper.updateBizBibExpert(bizBibExpert);
    }

    /**
     * 批量删除专家
     *
     * @param expIds 需要删除的专家主键
     * @return 结果
     */
    @Override
    public int deleteBizBibExpertByExpIds(String[] expIds)
    {
        return bizBibExpertMapper.deleteBizBibExpertByExpIds(expIds);
    }

    /**
     * 删除专家信息
     *
     * @param expId 专家主键
     * @return 结果
     */
    @Override
    public int deleteBizBibExpertByExpId(String expId)
    {
        return bizBibExpertMapper.deleteBizBibExpertByExpId(expId);
    }
}
